// let nums:number[]=[1,2,3]
// nums.forEach(a=>console.log(a));

// let nums2:Array[String]=["A","B","C"];
// nums2.forEach((a)=>console.log(a));
// for(let i=0;i<nums2.length;i++){
//     console.log(nums2[i]);
// }
// for(let a of nums2){
//     console.log(a);
// }
//
// let mixed:(number|String) =[1,2,"hello"];
// mixed.forEach((a)=>console.log(a));
let char:number[]=[1,2,3,4,5,2,3,6,7,8,9];
let index=char.indexOf(2);
console.log(index);
char=char.concat([0,0,0,0]);
let str:String="";
char.forEach((num)=>str+=num+",");
console.log(str);

let charThree:number[]=char.slice(1,3);
let str2:String="";
charThree.forEach((num)=>str2+=num+",");
console.log(str2);
// let index2:number=char.findIndex((num)=>num==2);
// console.log(index2);
//
// let charTwo:number[]=char.filter((num)=>num==2);
// charTwo.forEach((num)=>console.log(num));
// console.log(charTwo.join(" "));
//
// let res:String="";
// for(let i=0;i<char.length;i++){
//     res+=char[i]+" , ";
// }
// console.log(res);
